import request from '@/utils/request'

// 查询慢病中心-医生列表
export function listDoctor(query) {
  return request({
    url: '/chronicDisease/doctor/list',
    method: 'get',
    params: query
  })
}

// 查询慢病中心-医生详细
export function getDoctor(id) {
  return request({
    url: '/chronicDisease/doctor/' + id,
    method: 'get'
  })
}

// 新增慢病中心-医生
export function addDoctor(data) {
  return request({
    url: '/chronicDisease/doctor',
    method: 'post',
    data: data
  })
}

// 修改慢病中心-医生
export function updateDoctor(data) {
  return request({
    url: '/chronicDisease/doctor',
    method: 'put',
    data: data
  })
}

// 删除慢病中心-医生
export function delDoctor(id) {
  return request({
    url: '/chronicDisease/doctor/' + id,
    method: 'delete'
  })
}

// 状态修改 
export function updateStatus(query) {
  return request({
    url: '/chronicDisease/doctor/updateStatus',
    method: 'get',
    params: query
  })
}